package com.briup.jz.service;

import java.util.List;

import com.briup.jz.bean.Article;
import com.briup.jz.bean.extend.ArticleExtend;
import com.briup.jz.utils.CustomerException;

public interface IArticleService {
	void save(Article artical);

	List<Article> findAll();

	Article findById(long id);

	// 存储或者更新
	void saveOrUpdate(Article article) throws CustomerException;

	// 根据名字模糊查询
	List<Article> query(String name);

	// 根据id删除一个
	void deleteById(long id) throws CustomerException;

	List<Article> query(String title, String status, Long categoryId);

	List<ArticleExtend> queryCascade(String title, String status, Long categoryId);

	ArticleExtend read(Long id);

}

